home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import javax.swing.plaf.IconUIResource;
-
- final class LookAndFeel$1 implements UIDefaults.LazyValue {
- // $FF: synthetic field
- private final String val$gifFile;
- // $FF: synthetic field
- private final Class val$baseClass;
-
- // $FF: synthetic method
- LookAndFeel$1(Class var1, String var2) {
- this.val$baseClass = var1;
- this.val$gifFile = var2;
- }
-
- public Object createValue(UIDefaults var1) {
- byte[][] var2 = new byte[1][];
- SwingUtilities.doPrivileged(new LookAndFeel.2(this.val$baseClass, var2, this.val$gifFile));
- if (var2[0] == null) {
- System.err.println(this.val$baseClass.getName() + "/" + this.val$gifFile + " not found.");
- return null;
- } else if (var2[0].length == 0) {
- System.err.println("warning: " + this.val$gifFile + " is zero-length");
- return null;
- } else {
- return new IconUIResource(new ImageIcon(var2[0]));
- }
- }
- }
-